Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MySQL download path #52

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

webchick
Copy link

Getting this same error referenced in #43 (using macOS Mojave; Version 10.14.6 — master branch of this project; commit hash 664e14f)

     Installing MySQL database on MacOS
Sorry, this target couldn't be completed properly
The error message is:
The following error occurred while executing this line:
/Users/xxx/Desktop/AEM/aem-demo-machine/build.xml:2923: The following error occurred while executing this line:
/Users/xxx/Desktop/AEM/aem-demo-machine/build.xml:3400: Problem expanding gzip Not in GZIP format

Digging in a bit further into build.xml, it looks like lines 2962 and 2964 reference the URL: http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-${demo.mysql}.tar.gz

However, directly accessing http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.41-macos10.13-x86_64.tar.gz yields a 404 not found. (Which, makes sense that a 404 error would not be in GZIP format. :))

The correct URL seems to be http://downloads.mysql.com/archives/get/file/mysql-5.6.41-macos10.13-x86_64.tar.gz but even after making this change, I'm still seeing the same error, so something else appears to be going on...

The previous URL has the same problems due to some redirects MySQL.com seems to have in place. Trying an updated cdn.mysql.com URL instead, which seems to work!
@webchick
Copy link
Author

Ok, so in debugging from wget, http://downloads.mysql.com/archives/get/file/mysql-5.6.41-macos10.13-x86_64.tar.gz redirects to https, which redirects back to cdn, but a slightly different URL pattern:

https://cdn.mysql.com/archives/mysql-5.6/mysql-5.6.41-macos10.13-x86_64.tar.gz

Changed it to this, and that seems to work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant